<!--
 * @Description: 
 * @Author: 姚泽毅
 * @Date: 2021-12-17 09:16:40
 * @LastEditTime: 2021-12-20 08:55:45
-->
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>圣诞树</title>

    <!-- Behavioral Meta Data -->
    <meta name="Christmas-Landing-Page" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <link rel="icon" href="./images/christmas-tree.png">
    <!-- Styles -->
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/media-query.css">

</head>

<body>
    <div id="loader"></div>
    <audio src="./Taylor Swift - Last Christmas.mp3" loop autoplay id="audio"></audio>
    <!-- Parallax Container -->
    <div id="container" class="parallax-container snow">
        <ul id="christmas_scene" class="christmas-scene">
            <li class="layer" data-depth="0.80">
                <div class="layer-5 layer-photo photo-zoom"></div>
            </li>
            <li class="layer" data-depth="0.60">
                <div class="layer-4 layer-photo photo-zoom"></div>
            </li>
            <li class="layer" data-depth="0.40">
                <div class="layer-3 layer-photo photo-zoom"></div>
            </li>
            <li class="layer" data-depth="0.20">
                <div class="layer-2 layer-photo photo-zoom"></div>
            </li>
            <li class="layer" data-depth="0.00">
                <div class="layer-1 layer-photo"></div>
            </li>
        </ul>
        <!-- Countdown Container -->
        <div id="countdown_container"></div>

        <!-- Merry Christmas Text -> You can replace with anything you like! -->
        <div class="merry-christmas-text">Merry Christmas</div>

        <!-- Happy new year 2022 photo -->
        <div class="happy-new-year">
            Happy New Year<br />
            2022
        </div>

        <!-- Contact Pole Image -> From here the E-mail modal is triggered -->
        <div id="mail_pole">

        </div>
        <!-- Christmas Tree -->
        <img src="images/christmas-tree.png" alt="christmas-tree" id="christmas_tree">
    </div>

    <!-- Send E-mail Modal -->
    <div class="modal fade" id="contact_modal" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="col-md-12 mail-container">
                        <div class="col-md-12 padding-none bg-color">
                            <div class="col-md-12 text-center">It's Christmas!</div>
                            <div class="col-md-12 text-center">Don't be shy, Send us a message!</div>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                            <form class="col-md-12 padding-none">
                                <div class="col-md-6 col-xs-12">
                                    <div class="col-md-12 padding-none">
                                        <input type="text" class="mail-first-name" id="form_first_name"
                                            placeholder="First Name" />
                                    </div>
                                    <div class="col-md-12 padding-none">
                                        <input type="text" class="mail-last-name" id="form_last_name"
                                            placeholder="Last Name" />
                                    </div>
                                    <div class="col-md-12 padding-none">
                                        <input type="text" class="mail-email" id="form_valid_email"
                                            placeholder="E-mail" />
                                    </div>
                                    <div class="col-md-12 padding-none">
                                        <textarea class="mail-message" id="form_message"
                                            placeholder="Message"></textarea>
                                    </div>
                                </div>
                                <div class="col-md-6 col-xs-12 text-right">
                                    <img src="images/form-image.png" alt="form-pattern-image">
                                    <button class="btn form-submit-button" type="submit"
                                        id="submit_form_btn">Send</button>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="col-md-12 padding-none mail-container hidden">
                        <div class="col-md-12 padding-none bg-color thank-you-msg text-large" id="form_success_msg">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Scripts -->
    <script src="js/jquery-3.1.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.countdown.js"></script>
    <script src="js/jquery.parallax.js"></script>
    <script src="js/snow.js"></script>
    <script src="js/main.js"></script>
    <script>
        // Parallax Init
        $('#christmas_scene').parallax({
            scalarX: 5,
            scalarY: 15,
            invertY: false
        });
        document.addEventListener('DOMContentLoaded', function () {
            console.log("加载完成");
            setInterval(() => {
                var audio = document.getElementById('audio');
                if (audio.paused) {
                    console.log(audio);
                    audio.play()
                }
            }, 1000);
        });
    </script>
</body>

</html>